package com.ujoku.controller.admin;

import com.ujoku.domain.GCategory;
import com.ujoku.service.GCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by suggestion on 2015/1/26.
 */
@RestController
public class GCategoryMngController {
    @Autowired
    private GCategoryService categoryService;

    @RequestMapping(value="/uj-admin/category/list", method = RequestMethod.GET)
    public List<GCategory> categoryList(){

        return categoryService.selectList();
    }
}
